package com.tengfei.blogsystem.controller.portal;

/**
 * @version v1.0
 * @author} feige
 * @date 2021-10-15-21:06
 * @description
 */

import com.tengfei.blogsystem.response.ResponseResult;
import org.springframework.web.bind.annotation.*;

/**
 * 文章api
 */
@RestController
@RequestMapping("/portal/article")
public class ArticleApi {

    /**
     * 文章列表
     *
     * @param page
     * @param size
     * @return
     */
    @GetMapping("/list/{page}/{size}")
    public ResponseResult listArticle(@PathVariable("page") int page, @PathVariable("size") int size) {

        return null;
    }

    /**
     * 文章分类
     *
     * @param categoryId
     * @param page
     * @param size
     * @return
     */
    @GetMapping("/list/{categoryId}/{page}/{size}")
    public ResponseResult listArticleByCategory(@PathVariable("categoryId") String categoryId, @PathVariable("page") int page, @PathVariable("size") int size) {

        return null;
    }

    /**
     * 文章详情
     *
     * @param articleId
     * @return
     */
    @GetMapping("/{articleId}")
    public ResponseResult getArticleDetail(@PathVariable("articleId") String articleId) {

        return null;
    }

    /**
     * 推荐文章
     *
     * @param articleId
     * @return
     */
    @GetMapping("/recommend/{articleId}")
    public ResponseResult getRecommendArticle(@PathVariable("articleId") String articleId) {

        return null;
    }
}
